package com.ql.domain.response;

import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.List;

/**
 * spring security 扩展类
 */
@Data
@ToString
public class OperatorDetails extends User {
    private String id;
    private String name;
    private String tel;
    private String menus;
  /*  private String permissions;

    private String sections;
    private List<SelectTemplate> selectTemplates;*/

    public OperatorDetails(String username, String password, boolean enabled, boolean accountNonExpired,
                           boolean credentialsNonExpired, boolean accountNonLocked, List<SimpleGrantedAuthority> authorities)
            throws IllegalArgumentException {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }
}
